package lei;

public class TestAnimal {
    public static void main(String[] args) {

        Animal a = new Animal();
        Dog dog1 = new Dog();
        Cat cat1 = new Cat();
        a.walk();
        a.cry();


        Animal dog2=new Dog();
        Animal cat2=new Cat();
        dog2.cry();
        dog2.walk();
        cat2.cry();
        cat2.walk();
    }
}
